package xyz.luckapp.web;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import xyz.luckapp.entity.Json;
import xyz.luckapp.service.MovieService;

@Controller
@RequestMapping("/movie")
public class MovieController {
	@Resource
	private MovieService movieService;
	
	@RequestMapping("/list.do")
	@ResponseBody
	public Object list(){
		return new Json(movieService.getMovies());
	}
}
